package cn.lyn4ever.blogdemo.dowithoutifelse.service.impl;

import cn.lyn4ever.blogdemo.dowithoutifelse.bean.Order;
import cn.lyn4ever.blogdemo.dowithoutifelse.service.OrderService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 微信公众号 “小鱼与Java”
 *
 * @date 2020/5/18
 * @auther Lyn4ever
 */
@Service("orderServiceDfk")
public class PendingParymentOrderSeviceImpl implements OrderService {
    /**
     * 查询待付款的订单列表
     *
     * @return
     */
    @Override
    public List<Order> getOrderList( ) {
        System.out.println("这里是查询待付款的订单列表");
        // 伪造从数据库中查询出的数据
        List<Order> orders = new ArrayList<Order>();
        orders.add(new Order("1001", "0"));
        orders.add(new Order("1002", "0"));
        orders.add(new Order("1003", "0"));
        return orders;
    }
}
